<include file="Public/header"/>
<style>
.tf_color{
	background-color: #eee;
}
</style>

   <div class="x-body"><!-- layui-anim layui-anim-up -->
        <fieldset class="layui-elem-field">
            <legend>订单信息</legend>
            <div class="layui-field-box">
                <table class="layui-table">
                    <tbody>
                         <tr>
                        	<th style="width:150px;">订单号</th>
                        	<td><font color='green'>{$order["out_trade_no"]}</font></td>
                        </tr>                   
                        <tr>
                            <th style="width:150px;">活动名称</th>
                            <td><font color='green'>{$order["activity_id"]}</font></td>
                        </tr>                    

                        <tr>
                            <th>当前线路</th>
                            <td><font color='green'>{$order["quyu_name"]}</font></td></tr>

                        </tr>
                         <tr>
                            <th>当前小区</th>
                            <td><font color='green'>{$order["xiaoqu_name"]}</font></td>
                        </tr>
                         <tr>
                            <th>当前团长信息</th>
                            <td><font color='green'>{$tuaninfo["tuan_name"]} {$tuaninfo["mobile"]} </font></td>
                        </tr>                                                                        
                        <tr>
                            <th>下订会员信息</th>
                            <td><img src="{$userinfo.head}" width=40 height=40 borlde=0><font color='green'>收货人姓名：{$order['name']} 收货人手机号：{$order['mobile']} 收货人地址：{$order['address']}</font></td></tr>
                         <foreach name="order['goodsinfo']" item="v">
                        <tr>
                            <th>商品{$key+1}</th>
                            <td><font color='green'><img src='{$v.thumb}' >{$v.name} * {$v.num}&nbsp;&nbsp;商品编码：{$v.code}&nbsp;&nbsp;团购价：{$v.tuan_price}元 &nbsp;&nbsp;市场价：{$v.market_price}元   </font></td>
                        </tr>                        
                        </foreach>                        
                        <tr>
                            <th>实付金额</th>
                            <td><font color='green'>{$order["pay_jiner"]}元</font></td>
                        </tr>
                        <tr>
                            <th>订单说明</th>
                            <td><font color='green'>{$order["body"]}</font></td>
                        </tr>                         
                        <tr>
                            <th>下单时间</th>
                            <td><font color='green'>{$order["addtime"]|date='Y-m-d H:i:s',###}</font></td>
                        </tr>
                                                                                          
                    </tbody>
                </table>
                
                
                 <table class="layui-table">
                 <form action="{:U('Order/showorderxiaoqu_addhandle')}">
                    <tbody>
                         <tr>
                        	<th style="width:150px;">选择线路</th>
                        	<td>
                        	
	                        	<select style="height:30px;line-height:30px;" name="quyu_id" id="quyu_id"  >
	                        		<option value="0" selected='selected'>请选择</option>
	                        		<foreach name="quyu" item="v">
	                        			<option value="{$v.id}">{$v.name}</option>
	                        		</foreach>
	                        	</select>

                        	</td>
                        </tr>                   
                        <tr>
                            <th style="width:150px;">选择小区</th>
                            <td>

	                        	<select style="height:30px;line-height:30px;" name="xiaoqu_id" id="xiaoqu_id">
	                        		<option value="0" selected='selected'>请选择</option>
	                        		<foreach name="xiaoqu" item="v">
	                        			<option value="{$v.id}">{$v.name}</option>
	                        		</foreach>
	                        	</select>

							</td>
                        </tr>                    

                        <tr>
                            <td colspan=2> <input type="hidden" name="id" id="id" value="{$order.id}"/>
                            <label for="L_repass" class="layui-form-label"></label>
                            <button  class="layui-btn" lay-filter="submit" lay-submit="submit">提交修改</button>
                            </td>
                        </tr>                                                            
                    </tbody>
                 </form>
                </table>
            </div>
        </fieldset>
    </div>
<script>
<!--线路改变获取小区操作-->
$(function(){
	$("#quyu_id").change(function(){
		  var quyu_id=$(this).val();
		  if(quyu_id=='0'){
			  return false;
		  }
		  $.ajax({
			  type: 'POST',
			  url: '{:U("getXiaoqu")}',
			  data: {quyu_id:quyu_id},
			  dataType:  'json',
			  success: function(data){
				  $("#xiaoqu_id").empty();
				  if(data.retCode=="0000"){
					  $("#xiaoqu_id").append(data.data);
				  }else{
					  alert(data.retDesc);
					  $("#xiaoqu_id").append('<option value="0" selected="selected">请选择</option>');
				  }
		     }
	    });
	});
})

</script>    
<include file="Public/footer"/>